package com.woniuxy.pxxt.dao;


import com.woniuxy.pxxt.dto.UserMsgDtoSkc;
import com.woniuxy.pxxt.entity.Role;
import com.woniuxy.pxxt.entity.User;

import java.util.List;

/**
 * 每个账户对应的角色(PxxtRole)表数据库访问层
 *
 * @author makejava
 * @since 2022-03-07 15:19:13
 */
public interface RoleDao {

    List<Role> findAllRole();

    int updateRoleByUserId(UserMsgDtoSkc userMsgDtoSkc);

    /**
     * <P>Author ideaAdmin
     * <P>TODO:返回该用户的角色
     * <P>Date 8:37 2022/3/17
     * <P>* @param username
     * <P>* @return com.woniuxy.pxxt.entity.Role
     *
     * @param user*/
    List<Role> findRoleByAccount(User user);
}

